package com.itheima;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.web.servlet.DispatcherServlet;

@SpringBootApplication
public class ConsumerMain {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(ConsumerMain.class, args);
        DispatcherServlet bean = run.getBean(DispatcherServlet.class);
        System.out.println(bean);
        System.out.println("消费者启动");
    }
}
